package cn.liuweiwei.service;

import cn.liuweiwei.domain.Blog;
import com.github.pagehelper.PageInfo;
import org.springframework.transaction.annotation.Transactional;

public interface BlogService {

    PageInfo<Blog> findBlogsByTitle(String pageNum, String pageSize, String title);

    void insertOneBlog(Blog blog);

    Blog findOneBlogById(String id);

    PageInfo<Blog> findBlogsNoContent(String pageNum, String pageSize);

    PageInfo<Blog> orderBlogsByTime(String page, String limit);

    @Transactional
    void updateBlog(Blog blog);

    void deleteOneBlog(String blogId);
}
